smooth

The smooth command uses a gaussian windowing function (low-pass filter) on a Fourier transform loop in order to smooth the given vector. The windowing function is exp(- (f /(σ×fmax))2) where fmax is equal to half of the smallest power of 2 larger than the number of data points data. Variable f is the frequency that ranges from 0 to fmax. More likely, the smoothing factor is a non null positive real number from the (0, 1] interval. A smoothing factor σ > = 1 leaves the vector unchanged.

The number of data points data needs not to be a power of 2.

To be used with discernment!

smooth σ in-VECTOR out-VECTOR

fft, invfft, cmode, C